// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'; //导入element
//导入Message框
import {Message} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';//导入element的css
//以上代码便完成了 Element 的引入。需要注意的是，样式文件需要单独引入。
//导入axios
import axios from 'axios'
Vue.prototype.$http = axios
//把信息框挂载在原型上面
Vue.prototype.$message = Message
Vue.use(ElementUI);//使用element
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
